Class IPCMessageLTV

java.lang.Object
com.cisco.pt.impl.LTVImpl
com.cisco.pt.impl.IPCMessageLTV
All Implemented Interfaces:
LTV

public class IPCMessageLTV extends LTVImpl
Encapsulates IPC Message PTMP message
Author:
packettracerexapps@external.cisco.com
  • Field Details

    • messageId

      protected int messageId
    • calls

      protected List<IPCCall> calls
  • Constructor Details

    • IPCMessageLTV

      public IPCMessageLTV()
      constructor
  • Method Details

    • hasResponse

      public boolean hasResponse()
      Specified by:
      hasResponse in interface LTV
      Overrides:
      hasResponse in class LTVImpl
      Returns:
      true if the message generates a response from Packet Tracer
    • getMessageId

      public int getMessageId()
      Specified by:
      getMessageId in interface LTV
      Overrides:
      getMessageId in class LTVImpl
      Returns:
      message id, used to match this message with its response from Packet Tracer its value is arbitrary unless (hasResponse() == true OR isResponse() == true)
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buff)
      Specified by:
      encodeTypeAndPayload in interface LTV
      Overrides:
      encodeTypeAndPayload in class LTVImpl
      Parameters:
      buff - The EncodedBuffer that this object should encode itself into
    • getCalls

      public List<IPCCall> getCalls()
      Returns:
      a list of IPCCall
    • addCalls

      public void addCalls(IPCMessageLTV otherMessage)
      Parameters:
      otherMessage - IPCMessageLTV
    • addCall

      public void addCall(IPCCall call)
      Parameters:
      call - IPCCall